﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;

public class FollowPlayer : MonoBehaviour
{
    private NavMeshAgent nav;

    private void Start()
    {
        nav = GetComponent<NavMeshAgent>();


    }
    private void Update()
    {
        nav.SetDestination(GameObject.FindGameObjectWithTag("Player").transform.position);
        
    }
}
